package com.siae.controller;


import cn.dev33.satoken.util.SaResult;
import com.siae.pojo.User;
import com.siae.pojo.vo.Result;
import com.siae.service.AdminService;
import com.siae.service.UserService;
import com.siae.utils.BizCode;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/login")
@Tag(name = "LoginController",description = "登录操作")
public class LoginController {
    @Autowired
    private AdminService adminService;
    @Autowired
    private UserService userService;
    @GetMapping("/ap")
    public Result<User> findAP(
            @RequestParam(name = "account",defaultValue = "") String account,
            @RequestParam(name = "password",defaultValue = "") String password){
        return userService.findAP(account,password);
    }
}
